package laboratoryQ.computation;

public class Random implements IRandom {
	java.util.Random random = new java.util.Random(1234);
	
	public Random(double seed) {
		setSeed(seed);
	}
	
	public Random() {
	}

	@Override
	public double get() {
		return random.nextDouble();
	}

	@Override
	public void setSeed(double randomSeed) {
		random.setSeed((long)(randomSeed * 1000));
	}
}
